
	
export const getters = {
   
    user:state=>state.User.user,
    userlist:state=>state.User.userlist,
   
    token:(state)=>state.User.token,
    menuList: state => state.Menu.menuList,
    resourceList:state=>state.Resource.resourceList,
    totalPrice:state=>{
      let cartList = state.Cart.cartList // 购物车列表
      let total = cartList.reduce(
        (prevous, current) => prevous + (current.state? current.price * current.num:0),
        0
      );
      return total * 100;
    }
  };

